'use strict'

var nameEntryFactory = require('./implementation/Name')
var is = require('bpmn-js/lib/util/ModelUtil').is

module.exports = function(group, element, translate) {
  if (!is(element, 'bpmn:Collaboration')) {
    var options
    if (is(element, 'bpmn:TextAnnotation')) {
      options = { modelProperty: 'text' }
    }

    // name
    group.entries = group.entries.concat(nameEntryFactory(element, options, translate))
  }
}
